<%@page import="com.yunhuakeji.wddx.utils.IsNull"%>
<%@page import="net.sf.json.JSONObject"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
JSONObject result;
try{
	result = JSONObject.fromObject(request.getAttribute("result")).getJSONObject("content").getJSONObject("message");
}
catch(Exception e){
	result = null;
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>借阅报告</title>
     <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,minimum-scale=1.0,maximum-scale=1.0">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/myreport.css">
	<link rel="stylesheet" type="text/css" href="css/selectStyle.css">
	<script src="js/jquery.min.js"></script>
	<script src="js/selectCustom.js"></script>
	<script src="js/highcharts.js"></script>
	<script src="js/myReport.js"></script>
  </head>
  
  <body>
    	<%if(IsNull.isNotNull(result.toString())){ %>
    	<div class="myData-info-head">
    		<ul>
    			<li><a data-url="jbxx">基本信息</a></li>
    			<li><a data-url="lxdh">联系方式</a></li>
    			<li><a data-url="qtxx">其他信息</a></li>
    			<li><a data-url="jtcyxx">家庭成员信息</a></li>
    			<div class="clear"></div>
    		</ul>
    	</div>
    	<!-- 基本信息 -->
    	<div class="myData-info-menu">
	    	<div class="active bg-color-gray pt10" id="jbxx">
	    		<div class="bg-color-white">
	    			<dl>
	    				<dd>姓名</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("xm") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>学号</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("xh") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>性别</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("xb") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>出生日期</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("csrq") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>年级</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("nj") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>学制（年）</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("xz") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>学院</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("xy") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>政治面貌</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("zzmm") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>专业</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("zy") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>名族</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("mz") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>班级</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("bj") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>入学时间</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("rxsj") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>身份证号</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("sfzhm") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>户口所在地</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("hkszd") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>生源地(高考时户籍所在)</dd>
	    				<dt><%=result.getJSONObject("basicInfo").getString("syd") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    		</div>
	    	</div>
	    	<!-- 联系方式 -->
	    	<div class="bg-color-gray pt10" id="lxdh">
	    		<div class="bg-color-white">
	    			<dl>
	    				<dd>联系电话</dd>
	    				<dt><%=result.getJSONObject("contactInfo").getString("lxdh") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>电子邮箱</dd>
	    				<dt><%=result.getJSONObject("contactInfo").getString("yx") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>QQ</dd>
	    				<dt><%=result.getJSONObject("contactInfo").getString("QQ") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>家庭电话</dd>
	    				<dt><%=result.getJSONObject("contactInfo").getString("jtlxfs") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>家庭邮编</dd>
	    				<dt><%=result.getJSONObject("contactInfo").getString("yb") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>家庭地址</dd>
	    				<dt><%=result.getJSONObject("contactInfo").getString("jtzz") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    		</div>
	    	</div>
	    	<!-- 其他信息 -->
	    	<div class="bg-color-gray pt10" id="qtxx">
	    		<div class="bg-color-white">
	    			<dl>
	    				<dd>银行名称</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("yhmc") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>银行卡号</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("yhkh") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>姓名拼音</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("xmpy") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>身高</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("sg") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>体重</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("tz") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>特长</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("tc") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>健康状况</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("jkzk") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>培养层次</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("pycc") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>是否走读生</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("sfzds") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>考生类别</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("kslb") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>入学方式</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("rxfs") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>培养方式</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("pyfs") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>户籍性质</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("hjxz") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>是否贫困生</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("sfpks") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>宗教信仰</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("zjxy") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>备注</dd>
	    				<dt><%=result.getJSONObject("othersInfo").getString("bz") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    		</div>
	    	</div>
	    	<!-- 家庭成员信息 -->
	    	
	    	<div class="pl10 pr10 pb10 pt10 bg-color-gray" id="jtcyxx">
	    		<%for(int i=0;i<result.getJSONArray("familyMembersInfo").size();i++){ %>
		    		<%if(i == 0){ %>
		    		<div class="bg-color-white">
		    		<%}else if(i>0){ %>
		    		<div class="bg-color-white mt10">
		    		<%} %>
	    			<dl>
	    				<dd>姓名</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("xm") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>成员年龄</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("nl") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>关系</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("gx") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>工作或学习单位</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("dw") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>工作或学习单位地址</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("dz") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>单位邮编</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("yb") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>身份证号码</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("sfzhm") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>联系电话</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("lxfs") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>职业</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("zy") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>年收入</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("nsr") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    			<dl>
	    				<dd>健康状况</dd>
	    				<dt><%=result.getJSONArray("familyMembersInfo").getJSONObject(i).getString("jkzk") %></dt>
	    				<div class="clear"></div>
	    			</dl>
	    		</div>
	    			<%} %>
	    		</div> 
    	</div>
  <script>
 //创建myreport对象
/*  var report = new myReport(); */
//控制切换显示内容以及标题
$(function(){
//默认高亮按钮
	$("a[data-url="+$(".active").attr("id")+"]").css("background","#8cd06c");
//切换显示内容	
	$('.myData-info-head ul li a').bind('click',function(){
		$('.myData-info-head ul li a').css("background","");
		$(this).css("background","#8cd06c");
		$(".active").removeClass("active");
		$("#"+$(this).attr("data-url")).addClass("active");
	});
});
</script>
	     <%}else{ %>
       <div class="noData">
            <img alt="" src="img/noData.png">
            <div class="mt20">暂无数据</div>
       </div>
   <%} %>
  </body>
</html>
